<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	{js:jquery}
	<link href="{webroot:public/css/twitter-bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet">
	<script src="{webroot:public/javascript/twitter-bootstrap/3.3.7/js/bootstrap.min.js}"></script>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>

<body>
<div class="container">
	<table class="table table-bordered">
		<caption>
			直播中商家
		</caption>

		<colgroup>
			<col width="200px" />
			<col />
			<col width="180px" />
			<col width="250px" />
		</colgroup>

		<thead>
		<tr>
			<th>商家</th>
			<th>房间名称</th>
			<th>直播开始时间</th>
			<th>操作</th>
		</tr>
		</thead>
		{if:count($data['LiveStreamOnlineInfo']) > 0}
		<tbody>
		{foreach:items = $data['LiveStreamOnlineInfo']}
		<tr>
			<td>{$item['seller_name']}</td>
			<td>{$item['room_name']}</td>
			<td>{$item['PublishTime']}</td>
			<td>
				<button type="button" class="btn btn-info" onclick="window.parent.location.href='{url:/site/live_show/seller_id/$item['seller_id']}';">进入房间</button>
			</td>
		</tr>
		{/foreach}
		</tbody>
		{else:}
		<tfoot>
		<tr>
			<th colspan="4">
				对不起，没有找到正在直播的商家
			</th>
		</tr>
		</tfoot>
		{/if}

	</table>
	{$pageObj->getPageBar()}
</div>
</body>
</html>